<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"></link>
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen"></link>
<link href="css/sticky-footer-navbar.css" rel="stylesheet"> </link>
<link href="css/custom.css" rel="stylesheet"> </link>
<link rel="stylesheet" href="signin.css"> </link>
<link rel="stylesheet" href="css/bootstrap.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.css" />
<link rel="stylesheet" href="css/custom.css" />
<link rel="shortcut icon" href="<?php echo base_url().'images/logo.png';?>" />


<title>Ecoopratio</title>

</head>

<body>



<div class="navbar navbar-inverse" role="navigation">
 <div class="navbar-header">
 
 
    <a class="navbar-brand" href="#">ecoopratio</a>
  </div>
</div>
<p>
	<div class="container">
	

<h2> Selamat Datang di ecoopratio </h2>


</div>


	
	<div class="container login">
	<div class="row ">
		<div class="span2 well">
			
          	
			
			
		
	


	<legend>Login Koperasi</legend>
	
	
	
	<?php
		$attributes = array('name' => 'login_form', 'id' => 'login_form');
		echo form_open('login/process_login', $attributes);
	?>
		
		<?php 
			$message = $this->session->flashdata('message');
			echo $message == '' ? '' : '<p id="message">' . $message . '</p>';
		?>
		
		<p>
			<label for="user_name">Username:</label>
			<input type="text" name="user_name" size="20" class="input-xlarge" value="<?php echo set_value('user_name');?>"/>
		</p>
		<?php echo form_error('user_name', '<p class="field_error">', '</p>');?>
		
		<p>
		 <div class="form-group">
			<label for="password">Password:</label>
			<input type="password" name="password" size="20" class="input-xlarge" value="<?php echo set_value('password');?>"/>
		</p>
		<?php echo form_error('password', '<p class="field_error">', '</p>');?>
			
		<p>
		<label for="id_cabang">login sebagai:</label>
		<?php // Data Cabang
			$cabang = $this->Cabang_model->get_cabang()->result();
			foreach($cabang as $row)
			{
				$options_cabang[$row->id_cabang] = $row->cabang;
			} ?>
        <?php echo form_dropdown('id_cabang', $options_cabang, isset($default['id_cabang']) ? $default['id_cabang'] : ''); ?>
	</p>
	<?php echo form_error('id_cabang', '<p class="field_error">', '</p>');?>
		
		<p>
			<input type="submit" class="btn btn-primary" name="submit" id="submit" value="Login" />
			

</div>

</div>
</div>
</div>

 
	<div id="wrap">
  <div id="main" class="container clear-top">
    <p>Copyright &copy;2013 ecoopratio</p>
  </div>
</div>
<footer class="footer"></footer>
</body>


</html>